import request from '@/utils/request'
export function fetchPermissionList() {
  return request({
    url:'/permission/list',
    method:'get'
  })
}
export function fetchPermissionListByTree() {
  return request({
    url:'/permission/treeList',
    method:'get'
  })
}
export function updatePermissionInfo(rid,info) {
    return request({
      url:'/permission/update/'+rid,
      method:'post',
      data:info
    })
}
export function newPermission(info) {
    return request({
      url:'/permission/create/',
      method:'post',
      data:info
    })
}
export function deletePermission(params) {
    return request({
      url:'/permission/delete/',
      method:'post',
      data:params
    })
}